<template>
  <div class="weui-cell weui-cell_input">
    <div class="weui-cell__hd">
      <div class="weui-label">
        {{left}}</div>
    </div>
    <div class="weui-cell__bd">
      <input class="weui-input"
             maxlength='30'
             :placeholder="placeholder"
             @input="$emit('inject',$event.target.value)"
             :type='type' />
    </div>
  </div>
</template>

<script>
export default {
  props: ['left', 'placeholder', 'type']
}
</script>

<style scoped>
</style>